interface ResponseData {
  code: number
  message: string
  ok: true
}

export interface AllPermissionInfo {
  createTime: string
  updateTime: string
  id: number
  name: string
  pid: number
  code: string
  toCode: string
  type: number
  status: string
  level: number
  children: AllPermissionList
  select: boolean
}

export type AllPermissionList = AllPermissionInfo[]

export interface AllPermissonListResponseData extends ResponseData {
  data: AllPermissionList
}

export interface PermissionData {
  code: string
  id?: number
  level: number
  name: string
  pid: number
}
